package com.czxy.mapper;

import com.czxy.pojo.Impression;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author 张青卯
 */
@org.apache.ibatis.annotations.Mapper
public interface ImpressionMapper extends Mapper<Impression> {

    /**
     * findById 根据Id查找出印象
     * @param spuId ID
     * @return List<Impression>
     */
    @Select("SELECT * FROM tb_impression WHERE spu_id = #{spuId}")
    List<Impression> findById(Integer spuId);
}
